package com.woniu.outpatient.service;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.woniu.user.domain.Patient;
import com.woniu.user.domain.Doctor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 工作人员表Service接口
 *
 * @author wolf-six
 * @date 2023-02-15
 */


@FeignClient("wolf-user")
public interface IDoctorService {

    @GetMapping(value = "/patient/patientName/{patientId}")
    public String getpatientNameById(@PathVariable("patientId") Long patientId);

    @GetMapping(value = "/patient/patientIdByName/{patientName}")
    public Patient getPatientIdByName(@PathVariable("patientName") String patientName);

    @GetMapping(value = "/doctor/doctorName/{doctorId}")
    String getDoctorNameById(@PathVariable("doctorId") Long doctorId);


    @GetMapping("/doctor/doctorIdByName/{doctorName}")
    Doctor getDoctorIdByName(@PathVariable("doctorName") String doctorName);

    @GetMapping(value = "/doctor/test/{doctorId}")
    Doctor selDoctorById(@PathVariable("doctorId") Long doctorId);

    @GetMapping(value = "/patient/test/{patientId}")
    Patient getNameById(@PathVariable("patientId") Long patientId);

    @GetMapping("/dept/getdeptList")
    AjaxResult getdeptList();

    @GetMapping("/doctor/getDoctorList")
    AjaxResult getDoctorList();

    @GetMapping("/doctor/getDoctorListYan")
    AjaxResult getDoctorListYan();

    @GetMapping("/patient/getPatientList")
    AjaxResult getPaientList();
}
